<p>view-child works!</p>
<section>
  <h3>获取dom</h3>
  <div class="box" #box>
    <p>box</p>
  </div>
  <div class="box" #box2>
    <p>box2</p>
  </div>

  <div class="box" >
    {{name}}
  </div>
  <div>
    <ul>
      <li> 三个函数调用顺序是：constructor>ngOnInit>ngAfterViewInit;</li>
      <li>默认在变更检测之后才会获取到元素，而ngAfterViewInit就是在变更检测之后才会调用</li>
    </ul>
  </div>
</section>




